<%-- 
    Document   : smsType10
    Created on : 11 Jan, 2013, 7:02:43 PM
    Author     : sagar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
        <script type="text/javascript">
            function selectSms(){
                var msBody=document.getElementById("smsType").value="Name of patient:${customer.customerName} \n\
Member type:${customer.paymentTypeId.paymentTypeName}\n\
Chief complaint:${customer.cheifComplaint} \n\
Hospitalisation: xyz\n\
Hospital: <name of hospital>\n\
Name of Locum: <name of doctor visiting patient>\n\
Phone number of Locum: <phone no of doctor visiting patient>\n\
HS Doctor: <name of HS doctor to whom call was transferred>\n\
Ambulance Service: <Name of Ambulance Service>";
            }
        </script>
    </head>
    <body onload="selectSms();">
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02">
            <form:form id="form1" name="form1"  method="POST">
            <fieldset>
                <legend>Sending SMS For - ${smsTypeName}</legend>
                <table class="formTable">
                    <tr>
                        <td colspan="3">Message :<br/>
                            <textarea id="smsType" name="smsType"  value="${msBody}" class="userInputLarge"/></textarea><br/>
                        <td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" name="_finish" style="padding:10px 5px 5px 5px;" value="<spring:message code="button.sendSms"/>" onclick=" validateForm();onSubmit();return yav.performCheck('form1', rules, 'inline'); "/></td>
                    </tr> 
                </table>
            </fieldset>
            </form:form>
        </div>
    </body>
</html>
